<?php
include_once "../header1.php";
?>
</head>
<body>
<?php
include_once ("$basedir"."/Login/databaseconnection.php");

if(!loggedin())
{
	require_once ("$basedir"."/index.php");
}
   
   else
   {
  if(isset($_POST['Register']))
{
require_once 'prisett.php';
}

?>
<?php
include_once "../header2.php";
?>
	<li><a href="<?php echo "$basedir";?>/index.php" class="active"><font color="#CCCC66" style="text-shadow:#969" size="+1">Home</font></a></li>
				<li><a href="<?php echo "$basedir";?>/Schools/Schools.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Schools</font></a>
               
          </li>
				<li><a href="#"><font color="#CCCC66" style="text-shadow:#969" size="+1">Teachers</font></a>
                <ul>

            <li><a href="<?php echo "$basedir";?>/Teachers/teachers.php"><font color="#CCCC66" style="text-shadow:#969" size="2">School Teachers</font></a></li>
            <li><a href="<?php echo "$basedir";?>/"><font color="#CCCC66" style="text-shadow:#969" size="2">Resource Person</font></a></li>
          </ul></li>
				<li><a href="<?php echo "$basedir";?>/Lab/Labs.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Labs</font></a></li>
				<li><a href="<?php echo "$basedir";?>/Resources/Resources.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Resources</font></a></li>
                <li><a href="<?php echo "$basedir";?>/Exams/Exams.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Exams</font></a></li>
                         <li><a href="<?php echo "$basedir";?>/Programmes/Programmes.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Programmes</font></a></li>
                                  <li><a href="<?php echo "$basedir";?>/Competition/Competition.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Competitions</font></a></li>
               <li><a href="#"><font color="#CCCC66" style="text-shadow:#969" size="4">Settings</font></a>
                <ul>
            <li><a href="<?php echo "$basedir";?>/Login/AccountSettings.php"><font color="#CCCC66" style="text-shadow:#969" size="2"><strong>Account Settings</strong></font></a></li>
            <li><a href="<?php echo "$basedir";?>/Login/PrivacySetting.php"><font color="#CCCC66" style="text-shadow:#969" size="2"><strong>Privacy Settings</strong></font></a></li>
            
          </ul></li>
			</ul>
	</div>
  </div>
<div class="left">
  
<div class="articles">
    <br/>
    <?php
	$succ=$_SESSION['success'];
	if($succ=="succ")
	{
   	unset($_SESSION['success']);
  echo '<form action="../index.php" method="POST">';
	}
	else
	{
		echo '<form action="#" method="POST">';
	}
  ?>
  <table width="1103" height="124" border="0" class="tablefontv">
    <tr>
      <th height="19" colspan="4"  scope="row">
      <?php
		if(isset($_POST['Register']))
{
	if(isset($_SESSION['errorin']))
	{
		echo $_SESSION['errorin'];
		unset($_SESSION['errorin']);
	}
	if(isset($_SESSION['error']))
	{
		echo $_SESSION['error'];
		unset($_SESSION['error']);
		
	}
	 	if(isset($_SESSION['errorop']))
	{
		echo $_SESSION['errorop'];
		unset($_SESSION['errorop']);
		
	}
}
		?></th>
      <td width="10" rowspan="12">&nbsp;</td>
    </tr>
       <tr>
         <th width="38"row">&nbsp;</th>
      <th width="181" height="24"row">Old Password: </th>
      <td width="144"><input type="password" name="OldPassword" /></td>
      <td width="703">&nbsp;</td>
      </tr>
       <tr>
         <th scope="row">&nbsp;</th>
         <th height="24" scope="row">New Password: </th>
         <td><?php
	  if(isset($npwre))
	  {
      echo "<input type='password' name='NewPassword' value='$npwre'/>";
	  }
	  else
	  {
		  echo '<input type="password" name="NewPassword" />';
	  }
	  ?>
         </td>
         <td></td>
       </tr>
       <tr>
         <th scope="row">&nbsp;</th>
      <th height="24" scope="row">Varify your new Password: </th>
      <td><input type="password" name="PasswordVar" /></td>
      <td> 
	  <?php
	  if(isset($_POST['Register']))
{
      if($_SESSION['errorvarfai']!=" ")
	{
		echo $_SESSION['errorvarfai'];
		unset($_SESSION['errorvarfai']);
		
	}
     if(isset($_SESSION['errorpwlen']))
	{
		echo $_SESSION['errorpwlen'];
		unset($_SESSION['errorpwlen']);
		
	}
	if(isset($_SESSION['errorvari']))
	{
		echo $_SESSION['errorvari'];
		unset($_SESSION['errorvari']);
		
	}
}
	?></td>
     
	<td width="1"></td>
    </tr>

    <tr>
      <th scope="row">&nbsp;</th>
      <th height="21" scope="row">&nbsp;</th>
      <td>
	 
</td>
      <td>&nbsp;</td>
      </tr>
   
  </table>
  <br/>
   <a href="PrivacySetting.php" class="reset">Reset |</a>
  <input name="Register" align="middle" type="submit" value="Change" />
 </form>
</div>
</div>

<div class="rightmenucre"> 
<h1>&nbsp;</h1><br />
<marquee direction="up" height="290"  style="marquee-speed:slow">
<p align="center"><font color="#5555FF" id="f_si" face="Verdana, Geneva, sans-serif">Our system is protect your information.But you must sign out our system when you leave from this system.Then only that cause risk to your informations...</font></marquee></div>
 <?php
include_once "../footer.php";
}
?>
</body>
</html>
